﻿
namespace BJYJ_Admin.Application.System.Dtos;

public class RoleInfoInsertDto
{
    /// <summary>
    /// 角色名称
    /// </summary>
    public string NAME { get; set; }
    /// <summary>
    /// 父级ID
    /// </summary>
    public int? PID { get; set; }
    /// <summary>
    /// 角色状态0启用1禁用
    /// </summary>
    public int? STATUS { get; set; }

    /// <summary>
    /// 角色完整路径
    /// </summary>
    public string PARENT_PATH { get; set; }

    /// <summary>
    /// 排序
    /// </summary>
    public int? ORDER_NUM { get; set; }

    /// <summary>
    /// 角色编码
    /// </summary>
    public string CODE { get; set; }


    /// <summary>
    /// 深度
    /// </summary>
    public int? DEPTH { get; set; }


}

public class RoleInfoSearchDto : BasePageRequest
{

    /// <summary>
    /// 角色名称
    /// </summary>
    public string? NAME { get; set; }
    /// <summary>
    /// 角色父级ID
    /// </summary>
    public int? PID { get; set; }
    /// <summary>
    /// 角色状态0启用1禁用
    /// </summary>
    public int? STATUS { get; set; }

    /// <summary>
    /// 角色深度
    /// </summary>
    public int? DEPTH { get; set; }
}
/// <summary>
/// 角色主键DTO
/// </summary>
public class RoleInfoIDDto : BaseIdInput
{
}
/// <summary>
/// 角色启用禁用DTO
/// </summary>
public class RoleStatusDto : BaseIdInput
{
    /// <summary>
    /// 状态0启用1禁用
    /// </summary>
    public int STATUS { get; set; }
}

/// <summary>
/// 为角色分配菜单DTO
/// </summary>
public class RolePowerDto 
{
    /// <summary>
    /// 角色ID
    /// </summary>
    public int ROLEID { get; set; }
    /// <summary>
    /// 菜单ID的集合
    /// </summary>
    public string MENUS { get; set; }
}
/// <summary>
/// 为用户分配角色DTO
/// </summary>
public class UserPowerDto
{
    /// <summary>
    /// 用户ID
    /// </summary>
    public int USERID { get; set; }
    /// <summary>
    /// 角色ID的集合
    /// </summary>
    public string ROLES { get; set; }
}

/// <summary>
/// 列表输出DTO
/// </summary>
public class RoleListOutDto
{

    /// <summary>
    /// 备  注:主键
    /// 默认值:
    ///</summary>
    public int ID { get; set; }

    /// <summary>
    /// 备  注:菜单名称
    /// 默认值:
    ///</summary>

    public string? NAME { get; set; }

    /// <summary>
    /// 备  注:父级ID
    /// 默认值:
    ///</summary>

    public int? PID { get; set; }

    /// <summary>
    /// 备  注:状态0启用1禁用
    /// 默认值:
    ///</summary>

    public int? STATUS { get; set; }

    /// <summary>
    /// 备  注:完整路径
    /// 默认值:
    ///</summary>

    public string? PARENT_PATH { get; set; }

    /// <summary>
    /// 备  注:排序
    /// 默认值:
    ///</summary>

    public int? ORDER_NUM { get; set; }

    /// <summary>
    /// 备  注:角色代码
    /// 默认值:
    ///</summary>

    public string? CODE { get; set; }

    /// <summary>
    /// 备  注:深度
    /// 默认值:
    ///</summary>

    public int? DEPTH { get; set; }


    /// <summary>
    /// 备  注:是否有子节点
    /// </summary>
    public bool HASCHILDREN { get; set; }

}
